package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Courses7Mapper;
import com.ruoyi.system.domain.Courses7;
import com.ruoyi.system.service.ICourses7Service;

/**
 * 课程Service业务层处理
 * 
 * @author Ranvekin
 * @date 2025-02-14
 */
@Service
public class Courses7ServiceImpl implements ICourses7Service 
{
    @Autowired
    private Courses7Mapper courses7Mapper;

    /**
     * 查询课程
     * 
     * @param courseId 课程主键
     * @return 课程
     */
    @Override
    public Courses7 selectCourses7ByCourseId(Long courseId)
    {
        return courses7Mapper.selectCourses7ByCourseId(courseId);
    }

    /**
     * 查询课程列表
     * 
     * @param courses7 课程
     * @return 课程
     */
    @Override
    public List<Courses7> selectCourses7List(Courses7 courses7)
    {
        return courses7Mapper.selectCourses7List(courses7);
    }

    /**
     * 新增课程
     * 
     * @param courses7 课程
     * @return 结果
     */
    @Override
    public int insertCourses7(Courses7 courses7)
    {
        return courses7Mapper.insertCourses7(courses7);
    }

    /**
     * 修改课程
     * 
     * @param courses7 课程
     * @return 结果
     */
    @Override
    public int updateCourses7(Courses7 courses7)
    {
        return courses7Mapper.updateCourses7(courses7);
    }

    /**
     * 批量删除课程
     * 
     * @param courseIds 需要删除的课程主键
     * @return 结果
     */
    @Override
    public int deleteCourses7ByCourseIds(Long[] courseIds)
    {
        return courses7Mapper.deleteCourses7ByCourseIds(courseIds);
    }

    /**
     * 删除课程信息
     * 
     * @param courseId 课程主键
     * @return 结果
     */
    @Override
    public int deleteCourses7ByCourseId(Long courseId)
    {
        return courses7Mapper.deleteCourses7ByCourseId(courseId);
    }
}
